package com.bawei.firm

import androidx.lifecycle.MutableLiveData
import com.bawei.base.bean.HouseEntity
import com.bawei.base.mvvm.BaseViewModel
import com.bawei.base.net.ApiService
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class FirmViewModel @Inject constructor(var apiService: ApiService):BaseViewModel() {
            var frimSuccess = MutableLiveData<MutableList<HouseEntity>>()
    fun frim(){
        httpRequest({apiService.house()},{frimSuccess.postValue(it)})
    }
}